FROM nginx:1.17.3-alpine

MAINTAINER zfe

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && mkdir -p /app

WORKDIR /app

ADD /dist/  /usr/share/nginx/html/

ARG PROFILE_ACTIVE
ENV PROFILE_ACTIVE_ENV $PROFILE_ACTIVE

CMD nginx -g 'daemon off;'